package com.example.moonshine.baidumap.View.Activity;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;

import com.example.moonshine.baidumap.R;
//import com.example.moonshine.baidumap.Util.UpdateHttp;
import com.github.zackratos.ultimatebar.UltimateBar;

public class LaunchActivity extends Activity {



    String Msid;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.launch_activity);
        UltimateBar.newColorBuilder()
                .statusColor(Color.parseColor("#5e87e3"))       // 状态栏颜色
                .statusDepth(50)                // 状态栏颜色深度
                .build(this)
                .apply();


        Integer time = 1100;
        Handler handler = new Handler();
        try {
            handler.postDelayed(new Runnable() {
                @Override
                public void run() {

                    Intent intent = new Intent();
                    intent.setClass(LaunchActivity.this, LoginActivity.class);
                    startActivity(intent);
                    finish();
                }
            }, time);
        }catch (Exception e)
        {
            e.printStackTrace();
            Intent intent = new Intent();
            intent.setClass(LaunchActivity.this, LoginActivity.class);
            startActivity(intent);
            finish();
        }

    }


}
